package com.hiruss.efair.entities;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Advertisement{

	/**
	 * 
	 */
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private String addId;
	@Persistent
	private String sellerName;
	@Persistent
	private String sellerContactNum;
	@Persistent
	private String sellerEmail;
	@Persistent
	private String item;
	@Persistent
	private String description;
	@Persistent
	private String category;
	@Persistent
	private String dimensions;
	@Persistent
	private String weight;
	@Persistent
	private double price;
	@Persistent
	private boolean paid;
	@Persistent
	private boolean approved;
	@Persistent
	private int piority;
	@Persistent
	private transient String datasheet;
	@Persistent
	private transient List<String> images;

	public String getAddId() {
		return addId;
	}

	public void setAddId(String addId) {
		this.addId = addId;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getDatasheet() {
		return datasheet;
	}

	public void setDatasheet(String datasheet) {
		this.datasheet = datasheet;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDimensions() {
		return dimensions;
	}

	public void setDimensions(String dimensions) {
		this.dimensions = dimensions;
	}

	public List<String> getImages() {
		return images;
	}

	public void setImages(List<String> images) {
		this.images = images;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getSellerContactNum() {
		return sellerContactNum;
	}

	public void setSellerContactNum(String sellerContactNum) {
		this.sellerContactNum = sellerContactNum;
	}

	public String getSellerEmail() {
		return sellerEmail;
	}

	public void setSellerEmail(String sellerEmail) {
		this.sellerEmail = sellerEmail;
	}

	public String getSellerName() {
		return sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public boolean isApproved() {
		return approved;
	}

	public void setApproved(boolean approved) {
		this.approved = approved;
	}

	public boolean isPaid() {
		return paid;
	}

	public void setPaid(boolean paid) {
		this.paid = paid;
	}

	public int getPiority() {
		return piority;
	}

	public void setPiority(int piority) {
		this.piority = piority;
	}

}
